package test0102;

public class Book {
    String sname;
    String zname;
    boolean zt;

    public Book() {
    }

    public Book(String sname, String zname, boolean zt) {
        this.sname = sname;
        this.zname = zname;
        this.zt = zt;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getZname() {
        return zname;
    }

    public void setZname(String zname) {
        this.zname = zname;
    }

    public boolean isZt() {
        return zt;
    }

    public void setZt(boolean zt) {
        this.zt = zt;
    }

    @Override
    public String toString() {
        return "Book{" +
                "sname='" + sname + '\'' +
                ", zname='" + zname + '\'' +
                ", zt=" + zt +
                '}';
    }
}
